import { list } from '@/api/book'

import router, { resetRouter } from '@/router'

const state = {
  list: []
}

const mutations = {
  SET_LIST(state, list) {
    state.list = list
  }
}

const actions = {
  list({ commit }) {
    return list()
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}

